/**
 * 
 */
package com.softqin.washer.activity;

import com.softqin.washer.R;
import com.softqin.washer.common.WasherApp;
import com.softqin.washer.view.OrderConfirmDialog;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

/**
 * 
 * 
 * @ClassName: HomeOrderDetailActivity
 * 
 * @Description: 首页订单详情
 * 
 * @author 杨守志
 * 
 * @date 2015-1-13 上午10:41:18
 */
public class HomeOrderDetailActivity extends BaseActivity {
	private String TAG = HomeOrderDetailActivity.class.getSimpleName();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home_order_detail);
		initView();
		WasherApp.getInstance().addActivity(this);
	}

	private void initView() {
		initTitle();
		titleTv.setText(R.string.home_order_detail_title);
		findViewById(R.id.confirm_submit_button).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		super.onClick(v);
		switch (v.getId()) {
		case R.id.confirm_submit_button:
			OrderConfirmDialog dialog = new OrderConfirmDialog(
					HomeOrderDetailActivity.this);
			dialog.setInfo("提示ʾ", "商家顺风洗车是否已经为您提供打蜡＋清洗套餐？",
					new OnClickListener() {

						@Override
						public void onClick(View v) {
							startActivity(new Intent(
									HomeOrderDetailActivity.this,
									OrderEvaluationActivity.class));
						}
					});
			dialog.show();
			break;

		default:
			break;
		}
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

}
